trigger InvalidRelationship on Relationship__c (before insert, before update,before delete) {
    
AccountContactRelationshipTriggerHandler handler=new AccountContactRelationshipTriggerHandler ();
    
if((trigger.isInsert && trigger.isBefore)|| (trigger.isUpdate && trigger.isBefore)){
    handler.OnBeforeRelationshipInsert(trigger.new);
}
if(trigger.isDelete && trigger.isBefore){
    handler.OnbeforeRelationshipDelete(trigger.oldmap);
}
}